package com.wsfk.ssm.service;

import java.io.File;
import java.io.IOException;
import java.util.List;

import javax.annotation.Resource;

import org.easymock.IExpectationSetters;

import com.wsfk.ssm.entity.HandBook;
import com.wsfk.ssm.entity.Picture;
import com.wsfk.ssm.entity.TempImage;
import com.wsfk.ssm.entity.User;
import com.wsfk.ssm.path.POPS;

public interface FileSvc {

	public abstract boolean saveBook(User user, HandBook book, File file,
			String model) throws IOException;

	public abstract boolean saveContent(File file,Picture pictuer) throws IOException;

	public abstract boolean saveZip(User user, HandBook book);
	
	public abstract boolean saveTowCodes(User user, HandBook book, String code);

	public abstract boolean saveContent(User user, HandBook book,
			List<File> uploadPic, List<String> place)throws IOException;

	public abstract boolean saveImage(String userId, String bookId, String imagePath,
			File file) throws IOException;

	public abstract boolean savePic(User user, HandBook handBook,
			TempImage tempImage, String no) throws IOException;

	public abstract boolean updateIcon(Picture picture, File file) throws IOException ;

}